package com.qfedu.aunt.commons.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 雇主表
 * </p>
 *
 * @author xiaobobo
 * @since 2022-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_employer")
@ApiModel(value="Employer对象", description="雇主表")
public class Employer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "雇主id")
    @TableId(value = "employer_id", type = IdType.ID_WORKER_STR)
    private String employerId;

    @ApiModelProperty(value = "雇主名字")
    private String employerName;

    @ApiModelProperty(value = "雇主电话")
    private String employerPhone;

    @ApiModelProperty(value = "雇主密码")
    private String employerPassword;

    @ApiModelProperty(value = "是否删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "离线乐观锁")
    @Version
    private Integer version;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;



    @ApiModelProperty(value = "用户id")
    private String userId;


}
